package com.pacai.homework;

/**
 * @author pacai
 * @version 1.0
 */
public class HomeWork10 {
    public static void main(String[] args) {
        Demo demo = new Demo();
        Demo demo2 = demo;
        demo2.m();
        System.out.println(demo.i);//101
        System.out.println(demo2.i);//101
    }
}



class Demo{
    int i = 100;
    public void m(){
        int j = i++;
        System.out.println("i = " + i);
        System.out.println("j = " + j);
    }
}

